CC = gcc
CFLAGS = -Wall -O3 -DPANDORA `sdl-config --cflags`
LDFLAGS = `sdl-config --libs`
SOURCES = src/particle.c src/sandora.c
OBJECTS = $(SOURCES:.c=.o)
TARGET = sandora

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -o $@

.c.o:
	$(CC) -c $(CFLAGS) $< -o $@

clean:
	rm -f $(TARGET) $(OBJECTS)
